package com.example.phoenixshop.bean;

public class Addresses {
    /**
     * 地址id
     */
    private Long id;
    /**
     * 买家id
     */
    private Long buyerId;
    /**
     * 收件人姓名
     */
    private String recipient;
    /**
     * 国家
     */
    private String country;
    /**
     * 省份
     */
    private String province;
    /**
     * 城市
     */
    private String city;
    /**
     * 县区
     */
    private String counties;
    /**
     * 详细地址
     */
    private String detailedAddress;
    /**
     * 邮政地址
     */
    private String postalCode;
    /**
     * 联系电话
     */
    private String contactNumber;
    /**
     * 是否默认地址，0为否，1为默认
     */
    private Byte isDefault;

    public Addresses(Long id, Long buyerId, String recipient, String country, String province, String city, String counties, String detailedAddress, String postalCode, String contactNumber, Byte isDefault) {
        this.id = id;
        this.buyerId = buyerId;
        this.recipient = recipient;
        this.country = country;
        this.province = province;
        this.city = city;
        this.counties = counties;
        this.detailedAddress = detailedAddress;
        this.postalCode = postalCode;
        this.contactNumber = contactNumber;
        this.isDefault = isDefault;
    }

    public Addresses() {
        super();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getBuyerId() {
        return buyerId;
    }

    public void setBuyerId(Long buyerId) {
        this.buyerId = buyerId;
    }

    public String getRecipient() {
        return recipient;
    }

    public void setRecipient(String recipient) {
        this.recipient = recipient == null ? null : recipient.trim();
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country == null ? null : country.trim();
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province == null ? null : province.trim();
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city == null ? null : city.trim();
    }

    public String getCounties() {
        return counties;
    }

    public void setCounties(String counties) {
        this.counties = counties == null ? null : counties.trim();
    }

    public String getDetailedAddress() {
        return detailedAddress;
    }

    public void setDetailedAddress(String detailedAddress) {
        this.detailedAddress = detailedAddress == null ? null : detailedAddress.trim();
    }

    public String getPostalCode() {
        return postalCode;
    }

    public void setPostalCode(String postalCode) {
        this.postalCode = postalCode == null ? null : postalCode.trim();
    }

    public String getContactNumber() {
        return contactNumber;
    }

    public void setContactNumber(String contactNumber) {
        this.contactNumber = contactNumber == null ? null : contactNumber.trim();
    }

    public Byte getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(Byte isDefault) {
        this.isDefault = isDefault;
    }
}